<div class="{{$viewClass['form-group']}}">

    <label class="{{$viewClass['label']}} control-label">{{$label}}</label>

    <div class="{{$viewClass['field']}}">

        @include('admin::form.error')
        @if($name == 'shili_luoyan')
        <div class="input-group input-group-sm">
          <div class="input-group-prepend">
            <span class="input-group-text" >右</span>
          </div>
          <input type="text" name="{{ $name }}_right[ds]" class="form-control" value="{{ \Illuminate\Support\Arr::get($right, 'ds', '') }}">
        </div>
        @else
        <div class="input-group input-group-sm">
          <div class="input-group-prepend">
            <span class="input-group-text" >右</span>
          </div>
          <input type="text" name="{{ $name }}_right[ds]" class="form-control" value="{{ \Illuminate\Support\Arr::get($right, 'ds', '') }}">
          @if(in_array( $name, $fields_arr))
          <div class="input-group-prepend">
            <span class="input-group-text" >DS</span>
          </div>
          <input type="text" name="{{ $name }}_right[dc]" class="form-control" value="{{ \Illuminate\Support\Arr::get($right, 'dc', '') }}">
          <div class="input-group-append">
            <label class="input-group-text" for="inputGroupSelect02">DC</label>
          </div>
          <input type="numtextber" name="{{ $name }}_right[a]" class="form-control" value="{{ \Illuminate\Support\Arr::get($right, 'a', '') }}">
          <div class="input-group-append">
            <label class="input-group-text" for="inputGroupSelect02">A</label>
          </div>
          @endif
          
        </div>
        
        <div class="input-group input-group-sm">
          <div class="input-group-prepend">
            <span class="input-group-text" >左</span>
          </div>
          <input type="text"  name="{{ $name }}_left[ds]" class="form-control" value="{{ \Illuminate\Support\Arr::get($left, 'ds', '') }}">
          @if(in_array( $name, $fields_arr))
          <div class="input-group-prepend">
            <span class="input-group-text" >DS</span>
          </div>
          <input type="text"  name="{{ $name }}_left[dc]" class="form-control" value="{{ \Illuminate\Support\Arr::get($left, 'dc', '') }}">
          <div class="input-group-append">
            <label class="input-group-text" for="inputGroupSelect02">DC</label>
          </div>
          <input type="text"  name="{{ $name }}_left[a]" class="form-control"  value="{{ \Illuminate\Support\Arr::get($left, 'a', '') }}">
          <div class="input-group-append">
            <label class="input-group-text" for="inputGroupSelect02">A</label>
          </div>
           @endif
        </div>
        @endif
        @include('admin::form.help-block')

    </div>
</div>
